<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>title</title>
    <script>
        function Open() {
            var option=document.getElementById("select");
            if(option.value=="all_student"){
                window.location.href="allStudent.html";
            }else if(option.value=="individual_student"){
                window.location.href="ID.jsp";
            }else if (option.value=="student_status"){
                window.location.href="Student Status.jsp";
            }else if (option.value=="semester"){
                window.location.href="Semester.jsp";
            }else if (option.value=="enrollment_data"){
                window.location.href="Enrollment_Date.jsp";
            }else if(option.value=="up&down"){
                window.location.href="load.jsp"
            }else if(option.value=="read"){
                window.location.href="read.jsp"
            }

        }
    </script>
    <style>
        body{
            background-image:linear-gradient(to right, #ffc6e2, #ccb4ff);
        }

        hover {
            color: #ff7300;
        }

        h2{
            color: #6b138b;
            text-align: center;
            vertical-align:middle;
        }

        div{
            background-color: white ;
            width: 300px;
            height: 250px;
            border-radius: 20px;
            opacity: 0.9;
            margin-left: auto;
            margin-right: auto;
            margin-top: 240px;
        }


        select{
            width: 200px;
            height: 40px;
            border: 1px solid #080a0b;
        }

        a{
            text-decoration:none;
        }

        button{
            background-color: white;
            color: #c7a9ff;

        }



    </style>

</head>

<body>
<button><a href="index.jsp">上一页</a></button>
      <div style="text-align:center;vertical-align:middle;">
          <h2><a  href="add.jsp" style="margin-top: 300px">添加学生信息</a></h2 >
          <h2><a href="/updateServlet">更新学生信息</a> </h2>
          <h2><a href="Alter.jsp">更新学生状态</a></h2>
          <h2><a href="manage.jsp">查询学生人数</a>
          <h2>请选择你要查看的方式</h2>
    <select name="Option" id="select" style="color: #080a0b">
    <option value="all_student" >All Student</option>
    <option value="individual_student">Individual Student </option>
    <option value="student_status">Student Status</option>
    <option value="semester">Semester</option>
    <option value="enrollment_data">Enrollment Date</option>
    <option value="up&down">Upload & download the students </option>
    <option value="read">Read the file</option>
</select>
    <input type="submit" onclick="Open()">

    </div>
<%--<input type="submit" onclick="Open()">--%>

</body>

</html>
